import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

export type getHomeResult = {
  code: any;
  message: string;
  data?: {
    product: any;
    deviceInfo: any;
    interfaces: any;
  };
};

// 查询
export const getHomeData = (data?: object) => {
  return http.request<getHomeResult>(
    "post",
    baseUrlApi("console/information"),
    {
      data
    }
  );
};
